﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BusinessObjects.BO_GetObjects;

public partial class Controls_HomeSlider : Base_Controls
{
    protected void Page_Load(object sender, EventArgs e)
    {
        base.setField(Convert.ToInt32(this.Attributes["ID"]));
        if (!IsPostBack)
        {
            loadData();
        }
    }
    protected void loadData()
    {
        DataTable objDT = BO_portal_ads_pictures.GetByModuleID(Convert.ToInt32(this.Attributes["ID"]));
        rptNews.DataSource = objDT;
        rptNews.DataBind();
    }
}